home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{EB554505-3E59-11D1-9EE4-444553540000}#3.0#0"; "Esdf.ocx"
- Begin VB.Form frmMore
- BackColor = &H0080FFFF&
- Caption = "More for a programmer"
- ClientHeight = 4875
- ClientLeft = 1140
- ClientTop = 1755
- ClientWidth = 8115
- LinkTopic = "Form2"
- ScaleHeight = 4875
- ScaleWidth = 8115
- Begin VB.TextBox txtSearch
- Height = 285
- Left = 4440
- TabIndex = 11
- Text = "Type ID for search here"
- Top = 120
- Width = 2055
- End
- Begin VB.CommandButton cmdSearch
- Caption = "FindFirst Publisher"
- Height = 375
- Left = 4440
- TabIndex = 10
- Top = 360
- Width = 2055
- End
- Begin ESDF.ColumnEdit ColumnEdit4
- Height = 375
- Left = 3960
- TabIndex = 8
- Top = 2760
- Width = 2535
- _ExtentX = 4471
- _ExtentY = 661
- DataTable = "Table1"
- DataField = "Telephone"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.ColumnEdit ColumnEdit3
- Height = 375
- Left = 3960
- TabIndex = 7
- Top = 2280
- Width = 2535
- _ExtentX = 4471
- _ExtentY = 661
- DataTable = "Table1"
- DataField = "City"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.ColumnEdit ColumnEdit2
- Height = 375
- Left = 3960
- TabIndex = 6
- Top = 1800
- Width = 2535
- _ExtentX = 4471
- _ExtentY = 661
- DataTable = "Table1"
- DataField = "Address"
- BrowseColWidth = 20
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.ColumnNoEdit ColumnNoEdit1
- Height = 375
- Left = 0
- TabIndex = 3
- Top = 4560
- Visible = 0 'False
- Width = 2535
- _ExtentX = 4471
- _ExtentY = 661
- DataTable = "Table2"
- Browsed = -1 'True
- DataField = "Title"
- BrowseColWidth = 80
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.ColumnAutoID ColumnAutoID1
- Height = 375
- Left = 0
- TabIndex = 1
- Top = 3000
- Visible = 0 'False
- Width = 615
- _ExtentX = 1085
- _ExtentY = 661
- DataTable = "Table1"
- Browsed = -1 'True
- DataField = "PubID"
- BrowseColWidth = 4
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.ColumnEdit ColumnEdit1
- Height = 375
- Left = 3960
- TabIndex = 2
- Top = 1320
- Width = 2535
- _ExtentX = 4471
- _ExtentY = 661
- DataTable = "Table1"
- Browsed = -1 'True
- DataField = "Name"
- BrowseColWidth = 20
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.ControlBar ControlBar1
- Height = 3975
- Left = 6720
- TabIndex = 0
- Top = 120
- Width = 1200
- _ExtentX = 2117
- _ExtentY = 7011
- End
- Begin ESDF.Table Table2
- Height = 1290
- Left = 120
- TabIndex = 12
- Top = 3480
- Width = 6495
- _ExtentX = 11456
- _ExtentY = 2275
- DatabaseName = "C:\PROJCT32\ESDF\SAMPLES\Basic.mdb"
- RecordSource = "Titles"
- EnableAdd = 0 'False
- EnableEdit = 0 'False
- EnableDel = 0 'False
- EnableRecall = 0 'False
- EnableErase = 0 'False
- ControlBar = "ControlBar1"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin ESDF.Table Table1
- Height = 1710
- Left = 120
- TabIndex = 13
- Top = 1320
- Width = 3735
- _ExtentX = 6588
- _ExtentY = 3016
- ColorInactive = 12632256
- DatabaseName = "C:\PROJCT32\ESDF\SAMPLES\Basic.mdb"
- RecordSource = "Publishers"
- EnableAdd = 0 'False
- ControlBar = "ControlBar1"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Courier New"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin VB.Label Label3
- BackStyle = 0 'Transparent
- Caption = "One-to-many relations, sorting, filtering, search:"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H000000FF&
- Height = 615
- Left = 120
- TabIndex = 14
- Top = 0
- Width = 3975
- End
- Begin VB.Label Label2
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Only 6 lines of code inside!!!"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H000000FF&
- Height = 360
- Left = 120
- TabIndex = 9
- Top = 600
- Width = 4005
- End
- Begin VB.Label Label1
- BackStyle = 0 'Transparent
- Caption = "has published"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Index = 1
- Left = 720
- TabIndex = 5
- Top = 3120
- Width = 1695
- End
- Begin VB.Label Label1
- BackStyle = 0 'Transparent
- Caption = "Publisher"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Index = 0
- Left = 840
- TabIndex = 4
- Top = 960
- Width = 1695
- End
- Attribute VB_Name = "frmMore"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdSearch_Click()
- 'Table control is automatically aware about changes in current record of .Recordset
- 'Be careful with this feature ture when the Table is in ADD or EDIT modes
- Table1.Recordset.FindFirst "PubId = " & txtSearch
- 'If you delete, add update records directly through .Recordset,
- 'use .Refresh method to make the Table aware about.
- End Sub
- Private Sub Table1_TableInitData()
- Table1.AddOrder "[unsorted]", ""
- Table1.AddOrder "ID", "PubID"
- Table1.AddOrder "Name", "Name"
- End Sub
- Private Sub Table1_TableReposition()
- Table2.RecordSource = "SELECT * FROM Titles WHERE Pubid=" _
- + CStr(Table1.Recordset.fields("Pubid"))
- Table2.Refresh
- End Sub
-